package com.sky.his.api.mis.controller.form;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.*;

@Data
public class SearchRoleByPageForm {

    @NotNull(message = "page不能为空")
    @Min(value = 1, message = "page不能小于1")
    private Integer page;

    @NotNull(message = "length不能为空")
    @Range(min = 10, max = 50, message = "length必须在10到50之间")
    private Integer length;

    @Pattern(regexp = "[\\u4e00-\\u9fa5]{1,10}", message = "roleName内容不正确")
    private String roleName;

    @Size(max = 200, message = "desc最多200个字符")
    private String desc;

    private Integer systemic;
}
